<?php

namespace App\Helpers;

use ymz\UMeng\Android;
use ymz\UMeng\IOS;

/**
 * 友盟推送
 */
class Umeng
{
    static function android()
    {
        $config = [
            'appKey' => config('umeng.android_app_key'),
            'appMasterSecret' => config('umeng.android_app_master_secret'),
            'production_mode' => config('umeng.production_mode'),
        ];
        return new Android($config);
    }

    static function ios()
    {
        $config = [
            'appKey' => config('umeng.ios_app_key'),
            'appMasterSecret' => config('umeng.ios_app_master_secret'),
            'production_mode' => config('umeng.production_mode'),
        ];

        return new IOS($config);
    }
}
